<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-player-addGold"> <!--  th:object="${player}" -->
			<h3>管理员</h3>
			<input th:name="lotteryId" th:value="${lottery.lotteryId}"  type="hidden">
             <div class="form-group">
                 <label class="col-sm-3 control-label">用户名：</label>
                 <div class="col-sm-8">
                     <input readonly="true" th:value="${lottery.userName}" class="form-control" type="text">
                 </div>
             </div>
			<div class="form-group">
				<label class="col-sm-3 control-label">手机号：</label>
				<div class="col-sm-8">
					<input readonly="true" th:value="${lottery.phone}" class="form-control" type="text">
				</div>
			</div>
			<br/>
			<div class="form-group">
				<label class="col-sm-3 control-label">到期时间：</label>
				<div class="col-sm-8">
					<input type="text" class="time-input" readonly="true" name="vipExpire"/>
				</div>
			</div>
        </form>
    </div>
    <div th:include="include::footer"></div>
	<script type="text/javascript">
        $("#form-player-addGold").validate({
            rules:{
                vipExpire:{
                    required:true
//					,minlength: 5,
//                    maxlength: 20
                },
            }
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(ctx + "cp/lottery/addVip", $('#form-player-addGold').serialize());
            }
        }
	</script>
</body>
</html>
